﻿package logo.lang;

import java.util.ArrayList;

/**
 * This is a concrete class to represent the command IF.  An IF
 * statement has three sub expressions: the predicate, the consequent
 * and the alternative.  So, we inherit from an ASTNode3 class.  This
 * class provides an example of how you would implement all of your
 * intermediate classes.
 */
public class IRCmdProc extends IRCmd{
	
	
	String name;
	ArrayList params;
	IRCmdSeq seq;

  public IRCmdProc(String name, ArrayList params, IRCmdSeq body) {
		
		this.name = name;
		this.params = params;
		seq = body;
	}

  
    public String getName() {
	return name;
    }

    public ArrayList getParams() {
	return params;
    }

    public IRCmdSeq getSeq() {
	return seq;
    }

    public Object visit(Visitor v, Object info) throws Exception {
	return v.visitProc(this, info);
    }
}
